package com.googlecode.jsonld4j.rdf;

public class Literal implements Node {
	
	private String lexicalForm  = null;
	private String language  = null;
	private IRI datatype = null;
	
	public Literal(String lexicalForm) {
		this.lexicalForm = lexicalForm;
	}
	
	public Literal(String lexicalForm,String language) {
		this.lexicalForm = lexicalForm;
		this.language = language;
	}
	
	public Literal(String lexicalForm,IRI datatype) {
		this.lexicalForm = lexicalForm;
		this.datatype = datatype;
	}
	
	public String getLexicalForm() {
		return lexicalForm;
	}
	
	public String getLanguage() {
		return language;
	}
	
	public IRI getDatatype() {
		return datatype;
	}
	
	public boolean isIRI() {
		return false;
	}

	public boolean isBlankNode() {
		return true;
	}

	public boolean isLiteral() {
		return true;
	}
}
